package com.bicon.botu.mall.order.processor.fallback;

import com.bicon.botu.core.base.common.Constants;
import com.bicon.botu.core.base.common.entity.BaseResult;
import com.bicon.botu.mall.base.entity.DeliveryPoint;
import com.bicon.botu.mall.order.processor.handler.DeliveryPointRpc;
import org.springframework.stereotype.Component;

@Component
public class DeliveryPointFallback implements DeliveryPointRpc {

    @Override
    public BaseResult<DeliveryPoint> queryById(String deliveryPointId) {
        BaseResult<DeliveryPoint> result = new BaseResult<>();
        result.setCode(Constants.RESPONSE_CODE_404);
        result.setMessage(Constants.RESPONSE_MESSAGE_404);
        return result;
    }
}
